﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Manas.DynamicDeepZoom.Core
{
    public interface ILevelDefiner
    {
        int Level { get; set;  }
    }

    public class LevelDefiner : DependencyObject, ILevelDefiner
    {
        public int Level
        {
            get { return (int)GetValue(LevelProperty); }
            set { SetValue(LevelProperty, value); }
        }

        public static readonly DependencyProperty LevelProperty =
            DependencyProperty.Register("Level", typeof(int), typeof(LevelDefiner), new UIPropertyMetadata(0));
    }
}
